﻿
namespace PivotData
{
    /// <summary>
    /// Info for a collection
    /// </summary>
    public class CollectionInfo
    {
        public CollectionInfo()
        {
            WriteImageLink = true;
            ImageLinkName = "Original Image";
            ImageLinkFacetName = "Image";
            Properties = new PropInfo[0];
        }

        /// <summary>
        /// Name of the collection. Can contain anything you want
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// The Id of the collection
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// Write an image link in the facets for every single image.
        /// </summary>
        public bool WriteImageLink { get; set; }

        /// <summary>
        /// Name of the image link.
        /// </summary>
        public string ImageLinkName { get; set; }

        /// <summary>
        /// Name of the image link facet
        /// </summary>
        public string ImageLinkFacetName { get; set; }

        public class PropInfo
        {
            public PropInfo()
            { }
            public PropInfo(string key, string value)
            {
                this.key = key;
                this.value = value;
            }
            public string key;
            public string value;
        }
        public PropInfo[] Properties { get; set; }
    }
}